import http from './request'

// 请求新闻列表的接口
export const getNewsListApi = (page) =>
  http.get('/api/news', { params: { page } })

// 请求城市的列表数据
export const getCityListApi = () => http.get('/api/city')

// 根据关键字，查询城市名称
export const searchCityApi = (wd) =>
  http.get('/api/city/search', { params: { wd } })
